.CarouselItem {
    width: 450px;
    height: 278px;
    // margin: 0 auto;

    @mixin Width() {
        width: 100%;
        height: 275px;
        @content
    }

    .container {
        width: 100%;
        height: 260px;
        position: relative;

        .carouselList {
            width: 100%;
            height: 260px; // background: #477681;
            display: flex;
            border-radius: 7px;

            .imgItem {
                @include Width() {}

                div {
                    @include Width() {}

                    img {
                        width: 450px;
                        height: 100%;
                        border-radius: 7px;
                    }
                }

            }

        }

        @mixin leftAndright() {
            $b: #111;
            position: absolute;
            top: 50%;
            border-radius: 50%;
            font-size: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: lighten($b, 10%);
            cursor: pointer;
            width: 50px;
            height: 50px;
            opacity: 0;
            color: aliceblue;
            transition: all 0.3s;
            z-index: 999;

            &:hover {
                background: lighten($b, 20%);
            }

            @content;
        }


        .left {
            @include leftAndright() {
                left: 0;
                margin-left: 10px;
                transform: translateX(-50%);
            }
        }

        .right {
            @include leftAndright() {
                right: 0;
                margin-right: 10px;
                transform: translateX(50%);
            }
        }

        &:hover {

            .left,
            .right {
                opacity: 1;
                /* 鼠标悬停时显示箭头 */
                transform: translateX(0);
            }
        }

    }

}

.cardMode {
    width: 864px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;

    @mixin cardWidth($width, $hight) {
        width: $width !important;
        height: $hight !important;
        @content;
    }

    .cardItem {
        @include cardWidth(440px, 300px) {
            position: absolute;
            left: 50%;

            div {
                transform: translateX(-50%);
            }
        }
    }

}